﻿#include "CmdLineChartAxisLineUpdate.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdLineChartAxisLineUpdate::CmdLineChartAxisLineUpdate()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdLineChartAxisLineUpdate::~CmdLineChartAxisLineUpdate()
    {
    }

    bool CmdLineChartAxisLineUpdate::execute()
    {
        bool _success = false;
        emit IBaseSignalInstance->signal_lineChartAxisLineUpdate(
                m_typeAxis,
                m_id,
                m_value
        );
        return _success;
    }

    void CmdLineChartAxisLineUpdate::undo()
    {
        // TODO: undo
    }

    void CmdLineChartAxisLineUpdate::redo()
    {
        execute();
    }

}
